package com.bocai.mapper;

import com.bocai.bean.TSalesUser;
import com.bocai.bean.TUserInfo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface TSalesUserMapper {
    int deleteByPrimaryKey(Integer salesId);

    int insert(TSalesUser record);

    int insertSelective(TSalesUser record);

    TSalesUser selectByPrimaryKey(Integer salesId);

    TSalesUser selectByPhone(String phone);

    int updateByPrimaryKeySelective(TSalesUser record);

    int updateByPrimaryKey(TSalesUser record);

    List<Map<String, Object>> selectSalesList(TSalesUser salesUser);

    List<Map<String, Object>> selectSalesDetail(Integer userId);

    Map<String, Object> selectSalesDetails(Integer salesId);

    List<Map<String, Object>> selectSalesUserList(Map map);

    BigDecimal selectBalanceMoneyByKey();

    int updateDistributorMoney(TSalesUser tSalesUser);

    int updateSalesAddMoney(TSalesUser tSalesUser);
}